﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MvcApplication.Common
{
    public class TridentUtil
    {
        public static string LoadFileText(string filePath)
        {
            return File.ReadAllText(filePath);
        }

        public static byte[] LoadFileByte(string filePath)
        {
            return File.ReadAllBytes(filePath);
        }

        public static string ToString(byte[] bytes)
        {
            return Encoding.UTF8.GetString(bytes);
        }
    }
}
